home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DSIIC2.ARJ / L_WIN5.C < prev    next >
C/C++ Source or Header  |  1991-07-15  |  1KB  |  46 lines

  1. /* Copyright (c) James L. Pinson 1990,1991  */
  2.  
  3. /**********************   L_WIN5.C   ***************************/
  4.  
  5. #include "mydef.h"
  6.  
  7.  
  8. /*****************************************************************
  9.  
  10.  Usage: int win_what_attr(int handle);
  11.  
  12.  Handle= window handle;
  13.  
  14.  Returns the screen attribute of "handle"
  15.  
  16. *****************************************************************/
  17.  
  18. char win_what_attr(int handle)
  19. {
  20. extern struct screen_structure scr;
  21. extern struct window_structure w[];
  22.  
  23. return (w[handle].attribute); /* return the attribute */
  24. }
  25.  
  26.  
  27. /*****************************************************************
  28.  
  29.  Usage: void win_set_attr(int handle, char attribute);
  30.  
  31.  Handle= window handle;
  32.  Attribute = text attribute;
  33.  
  34.  Sets the default text attribute of the window "handle" to
  35.  "attribute".
  36.  
  37. *****************************************************************/
  38.  
  39. void win_set_attr(int handle,char attribute)
  40. {
  41. extern struct screen_structure scr;
  42. extern struct window_structure w[];
  43.  
  44.  w[handle].attribute = attribute;
  45. }
  46.